package reduce.fz.com.reduce.util;

import android.app.Activity;
import android.content.Intent;

import java.util.ArrayList;
import java.util.List;

import reduce.fz.com.reduce.activity.ImageDisplayActivity;

/**
 * Created by qingshengzheng on 15/12/5.
 */
public class ImageDisplay {

    public static void toDisplay(Activity activity,ArrayList<String> images,int position)
    {
        Intent intent = new Intent(activity, ImageDisplayActivity.class);
        intent.putStringArrayListExtra(ImageDisplayActivity.PARAM_IMAGE_PATH_LIST, images);
        intent.putExtra(ImageDisplayActivity.PARAM_IMAGE_POSITION, position);
        intent.putExtra("nickname", "");
        activity.startActivity(intent);

    }
}
